package com.yb0os1.mapper;

import com.yb0os1.entity.OrderDetail;
import com.yb0os1.entity.Top10;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface OrderDetailMapper {
    void insertBatch(List<OrderDetail> orderDetailList);

    @Select("select * from order_detail where order_id=#{id}")
    List<OrderDetail> getByOrderId(Long id);

    List<Top10> getTop10(LocalDate begin, LocalDate end);
}
